﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace cludg.Services.Security
{
    using Domain.Users;

    public class RegisterUserError : ApplicationException
    {
        public User User { get; private set; }

        public RegisterUserError(User user, string message)
            : base(message)
        {
            User = user;
        }

        public RegisterUserError(User user, string message, Exception innerException)
            : base(message, innerException)
        {
            User = user;
        }
    }

    public class UserAlreadyExistsError : RegisterUserError
    {
        public UserAlreadyExistsError(User user, string message)
            : base(user, message)
        {
        }
    }
}
